package club.pchome.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.pchome.mapper.UserAdminMapper;
import club.pchome.model.UserAdmin;
import club.pchome.model.UserInfo;

@Service
public class UserAdminService {

	@Autowired
	UserAdminMapper userAdminMapper;
	
	public UserAdmin login(String username, String password) {
		return userAdminMapper.login(username, password);
	}
	
	
	/**
	 * 获取用户信息
	 * @param cookie
	 * @return
	 */
	public List<UserAdmin> getUserToHolder(){
		return userAdminMapper.getUserToHolder();
	}
}
